<%@ page import="com.example.demo.DAO.UserDAO" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%
    request.setCharacterEncoding("UTF-8");
%>
<jsp:useBean id="user"
             class="com.example.demo.Entity.User"></jsp:useBean>
<jsp:setProperty property="*" name="user"/>
<%
    UserDAO dao = new UserDAO();
    dao.update(user);
    response.sendRedirect("userList.jsp");
%>
